/**
 * 
 */
package org.cuatrovientos.car;

/**
 * The class of Car
 * @author sam_e_000
 *
 */
public class Car extends Vehicle {
    
    private String number;
    
    /**
     * Constructor
     * @param name
     * @param number
     */
    public Car (String name, String number) {
            super(name);
            this.number=number;
    }
    

    /**
     * @return the number
     */
    public String getNumber() {
            return number;
    }



    public void setNumber(String number) {
            this.number = number;
    }



    
    public String toString() {
            return "Car [number=" + number + ", name=" + name + ", speed=" + speed
                            + ", acelerate=" + acelerate + ", take=" + take + "]";
    }

    
    
    
}